<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>class  OSGPARTICLE_EXPORT osgParticle::Particle</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">

<H2>class  OSGPARTICLE_EXPORT <A HREF="#DOC.DOCU">osgParticle::Particle</A></H2></H2><BLOCKQUOTE>Implementation of a <B>particle</B>.</BLOCKQUOTE>
<HR>

<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.13.2">Particle</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   <!1><A HREF="Particle.html#DOC.2.13.1">Shape</A> <B><A HREF="#DOC.2.13.3">getShape</A></B>() const 
<DD><I>Get the shape of the particle</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.13.4">update</A></B>(double dt)
<DD><I>Update the particle (don't call this method manually).</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.13.5">render</A></B>(const osg::Matrix &amp;modelview, float scale = 1.0f) const 
<DD><I>Render the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   Particle::Shape <B><A HREF="#DOC.2.13.26">getShape</A></B>() const 
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.27">setShape</A></B>(<!1><A HREF="Particle.html#DOC.2.13.1">Shape</A> s)
<DD><I>Set the shape of the particle</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   bool <B><A HREF="#DOC.2.13.28">isAlive</A></B>() const 
<DD><I>Get whether the particle is still alive</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   double <B><A HREF="#DOC.2.13.29">getLifeTime</A></B>() const 
<DD><I>Get the life time of the particle (in seconds)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   double <B><A HREF="#DOC.2.13.30">getAge</A></B>() const 
<DD><I>Get the age of the particle (in seconds)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   float <B><A HREF="#DOC.2.13.31">getRadius</A></B>() const 
<DD><I>Get the physical radius of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.32">setRadius</A></B>(float r)
<DD><I>Set the physical radius of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const <!1><A HREF="rangef.html">rangef</A>&amp; <B><A HREF="#DOC.2.13.33">getSizeRange</A></B>() const 
<DD><I>Get the minimum and maximum values for polygon size</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const <!1><A HREF="rangef.html">rangef</A>&amp; <B><A HREF="#DOC.2.13.34">getAlphaRange</A></B>() const 
<DD><I>Get the minimum and maximum values for alpha</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const rangev4&amp; <B><A HREF="#DOC.2.13.35">getColorRange</A></B>() const 
<DD><I>Get the minimum and maximum values for color</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const <!1><A HREF="Interpolator.html">Interpolator</A>* <B><A HREF="#DOC.2.13.36">getSizeInterpolator</A></B>() const 
<DD><I>Get the interpolator for computing the size of polygons</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const <!1><A HREF="Interpolator.html">Interpolator</A>* <B><A HREF="#DOC.2.13.37">getAlphaInterpolator</A></B>() const 
<DD><I>Get the interpolator for computing alpha values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const <!1><A HREF="Interpolator.html">Interpolator</A>* <B><A HREF="#DOC.2.13.38">getColorInterpolator</A></B>() const 
<DD><I>Get the interpolator for computing color values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const osg::Vec3&amp; <B><A HREF="#DOC.2.13.39">getPosition</A></B>() const 
<DD><I>Get the position vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const osg::Vec3&amp; <B><A HREF="#DOC.2.13.40">getVelocity</A></B>() const 
<DD><I>Get the velocity vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   const osg::Vec3&amp; <B><A HREF="#DOC.2.13.41">getPreviousPosition</A></B>() const 
<DD><I>Get the previous position (the position before last update)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.42">kill</A></B>()
<DD><I>Kill the particle on next update NOTE: after calling this function, the <CODE>isAlive()</CODE> method will still  return true until the particle is updated again</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.43">setLifeTime</A></B>(double t)
<DD><I>Set the life time of the particle</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.44">setSizeRange</A></B>(const <!1><A HREF="rangef.html">rangef</A> &amp;r)
<DD><I>Set the minimum and maximum values for polygon size</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.45">setAlphaRange</A></B>(const <!1><A HREF="rangef.html">rangef</A> &amp;r)
<DD><I>Set the minimum and maximum values for alpha</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.46">setColorRange</A></B>(const rangev4 &amp;r)
<DD><I>Set the minimum and maximum values for color</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.47">setSizeInterpolator</A></B>(<!1><A HREF="Interpolator.html">Interpolator</A>* ri)
<DD><I>Set the interpolator for computing size values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.48">setAlphaInterpolator</A></B>(<!1><A HREF="Interpolator.html">Interpolator</A>* ai)
<DD><I>Set the interpolator for computing alpha values.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.49">setColorInterpolator</A></B>(<!1><A HREF="Interpolator.html">Interpolator</A>* ci)
<DD><I>Set the interpolator for computing color values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.50">setPosition</A></B>(const osg::Vec3 &amp;p)
<DD><I>Set the position vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.51">setVelocity</A></B>(const osg::Vec3 &amp;v)
<DD><I>Set the velocity vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.52">addVelocity</A></B>(const osg::Vec3 &amp;v)
<DD><I>Add a vector to the velocity vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.53">transformPositionVelocity</A></B>(const osg::Matrix &amp;xform)
<DD><I>Transform position and velocity vectors by a matrix</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   float <B><A HREF="#DOC.2.13.54">getMass</A></B>() const 
<DD><I>Get the mass of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   float <B><A HREF="#DOC.2.13.55">getMassInv</A></B>() const 
<DD><I>Get <CODE>1 / getMass()</CODE></I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.56">setMass</A></B>(float m)
<DD><I>Set the mass of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.57">beginRender</A></B>()
<DD><I>Perform some pre-rendering tasks.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   void <B><A HREF="#DOC.2.13.58">endRender</A></B>()
<DD><I>Perform some post-rendering tasks.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline   float <B><A HREF="#DOC.2.13.59">getCurrentSize</A></B>() const 
<DD><I>Get the current (interpolated) polygon size.</I>
</DL></P>

<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum  <B><A HREF="#DOC.2.13.1">Shape</A></B>
</DL></P>

</DL>

<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Implementation of a <B>particle</B>.
Objects of this class are particles, they have some graphical properties
and some physical properties. Particles are created by emitters and then placed
into Particle Systems, where they live and get updated at each frame.
Particles can either live forever (lifeTime < 0), or die after a specified
time (lifeTime >= 0). For each property which is defined as a range of values, a
"current" value will be evaluated at each frame by interpolating the <I>min</I>
and <I>max</I> values so that <I>curr_value = min</I> when <I>t == 0</I>, and 
<I>curr_value = max</I> when <I>t == lifeTime</I>.
You may customize the interpolator objects to achieve any kind of transition.
If you want the particle to live forever, set its lifetime to any value <= 0;
in that case, no interpolation is done to compute real-time properties, and only
minimum values are used.</BLOCKQUOTE>
<DL>

<A NAME="Shape"></A>
<A NAME="DOC.2.13.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum  Shape</B></TT>
<DL><DT><DD></DL><P><DL>

<A NAME="POINT"></A>
<A NAME="DOC.2.13.1.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> POINT</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUAD"></A>
<A NAME="DOC.2.13.1.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUAD</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUAD_TRIANGLESTRIP"></A>
<A NAME="DOC.2.13.1.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUAD_TRIANGLESTRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="HEXAGON"></A>
<A NAME="DOC.2.13.1.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HEXAGON</B></TT>
<DL><DT><DD></DL><P></DL>

<A NAME="Particle"></A>
<A NAME="DOC.2.13.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Particle()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getShape"></A>
<A NAME="DOC.2.13.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   <!1><A HREF="Particle.html#DOC.2.13.1">Shape</A> getShape() const </B></TT>
<DD>Get the shape of the particle
<DL><DT><DD></DL><P>
<A NAME="update"></A>
<A NAME="DOC.2.13.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool update(double dt)</B></TT>
<DD>Update the particle (don't call this method manually).
This method is called automatically by <CODE>ParticleSystem::update()</CODE>; it
updates the graphical properties of the particle for the current time,
checks whether the particle is still alive, and then updates its position
by computing <I>P = P + V * dt</I> (where <I>P</I> is the position and <I>V</I> is the velocity).
<DL><DT><DD></DL><P>
<A NAME="render"></A>
<A NAME="DOC.2.13.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void render(const osg::Matrix &amp;modelview, float scale = 1.0f) const </B></TT>
<DD>Render the particle. Called automatically by particle systems.
<DL><DT><DD></DL><P>
<A NAME="getShape"></A>
<A NAME="DOC.2.13.26"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   Particle::Shape getShape() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setShape"></A>
<A NAME="DOC.2.13.27"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setShape(<!1><A HREF="Particle.html#DOC.2.13.1">Shape</A> s)</B></TT>
<DD>Set the shape of the particle
<DL><DT><DD></DL><P>
<A NAME="isAlive"></A>
<A NAME="DOC.2.13.28"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   bool isAlive() const </B></TT>
<DD>Get whether the particle is still alive
<DL><DT><DD></DL><P>
<A NAME="getLifeTime"></A>
<A NAME="DOC.2.13.29"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   double getLifeTime() const </B></TT>
<DD>Get the life time of the particle (in seconds)
<DL><DT><DD></DL><P>
<A NAME="getAge"></A>
<A NAME="DOC.2.13.30"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   double getAge() const </B></TT>
<DD>Get the age of the particle (in seconds)
<DL><DT><DD></DL><P>
<A NAME="getRadius"></A>
<A NAME="DOC.2.13.31"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   float getRadius() const </B></TT>
<DD>Get the physical radius of the particle.
For built-in operators to work correctly, lengths must be expressed in meters.
<DL><DT><DD></DL><P>
<A NAME="setRadius"></A>
<A NAME="DOC.2.13.32"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setRadius(float r)</B></TT>
<DD>Set the physical radius of the particle.
For built-in operators to work correctly, lengths must be expressed in meters.
<DL><DT><DD></DL><P>
<A NAME="getSizeRange"></A>
<A NAME="DOC.2.13.33"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const <!1><A HREF="rangef.html">rangef</A>&amp; getSizeRange() const </B></TT>
<DD>Get the minimum and maximum values for polygon size
<DL><DT><DD></DL><P>
<A NAME="getAlphaRange"></A>
<A NAME="DOC.2.13.34"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const <!1><A HREF="rangef.html">rangef</A>&amp; getAlphaRange() const </B></TT>
<DD>Get the minimum and maximum values for alpha
<DL><DT><DD></DL><P>
<A NAME="getColorRange"></A>
<A NAME="DOC.2.13.35"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const rangev4&amp; getColorRange() const </B></TT>
<DD>Get the minimum and maximum values for color
<DL><DT><DD></DL><P>
<A NAME="getSizeInterpolator"></A>
<A NAME="DOC.2.13.36"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const <!1><A HREF="Interpolator.html">Interpolator</A>* getSizeInterpolator() const </B></TT>
<DD>Get the interpolator for computing the size of polygons
<DL><DT><DD></DL><P>
<A NAME="getAlphaInterpolator"></A>
<A NAME="DOC.2.13.37"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const <!1><A HREF="Interpolator.html">Interpolator</A>* getAlphaInterpolator() const </B></TT>
<DD>Get the interpolator for computing alpha values
<DL><DT><DD></DL><P>
<A NAME="getColorInterpolator"></A>
<A NAME="DOC.2.13.38"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const <!1><A HREF="Interpolator.html">Interpolator</A>* getColorInterpolator() const </B></TT>
<DD>Get the interpolator for computing color values
<DL><DT><DD></DL><P>
<A NAME="getPosition"></A>
<A NAME="DOC.2.13.39"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const osg::Vec3&amp; getPosition() const </B></TT>
<DD>Get the position vector
<DL><DT><DD></DL><P>
<A NAME="getVelocity"></A>
<A NAME="DOC.2.13.40"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const osg::Vec3&amp; getVelocity() const </B></TT>
<DD>Get the velocity vector.
For built-in operators to work correctly, remember that velocity components are expressed
in meters per second.
<DL><DT><DD></DL><P>
<A NAME="getPreviousPosition"></A>
<A NAME="DOC.2.13.41"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   const osg::Vec3&amp; getPreviousPosition() const </B></TT>
<DD>Get the previous position (the position before last update)
<DL><DT><DD></DL><P>
<A NAME="kill"></A>
<A NAME="DOC.2.13.42"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void kill()</B></TT>
<DD>Kill the particle on next update
NOTE: after calling this function, the <CODE>isAlive()</CODE> method will still 
return true until the particle is updated again
<DL><DT><DD></DL><P>
<A NAME="setLifeTime"></A>
<A NAME="DOC.2.13.43"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setLifeTime(double t)</B></TT>
<DD>Set the life time of the particle
<DL><DT><DD></DL><P>
<A NAME="setSizeRange"></A>
<A NAME="DOC.2.13.44"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setSizeRange(const <!1><A HREF="rangef.html">rangef</A> &amp;r)</B></TT>
<DD>Set the minimum and maximum values for polygon size
<DL><DT><DD></DL><P>
<A NAME="setAlphaRange"></A>
<A NAME="DOC.2.13.45"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setAlphaRange(const <!1><A HREF="rangef.html">rangef</A> &amp;r)</B></TT>
<DD>Set the minimum and maximum values for alpha
<DL><DT><DD></DL><P>
<A NAME="setColorRange"></A>
<A NAME="DOC.2.13.46"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setColorRange(const rangev4 &amp;r)</B></TT>
<DD>Set the minimum and maximum values for color
<DL><DT><DD></DL><P>
<A NAME="setSizeInterpolator"></A>
<A NAME="DOC.2.13.47"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setSizeInterpolator(<!1><A HREF="Interpolator.html">Interpolator</A>* ri)</B></TT>
<DD>Set the interpolator for computing size values
<DL><DT><DD></DL><P>
<A NAME="setAlphaInterpolator"></A>
<A NAME="DOC.2.13.48"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setAlphaInterpolator(<!1><A HREF="Interpolator.html">Interpolator</A>* ai)</B></TT>
<DD>Set the interpolator for computing alpha values.        
<DL><DT><DD></DL><P>
<A NAME="setColorInterpolator"></A>
<A NAME="DOC.2.13.49"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setColorInterpolator(<!1><A HREF="Interpolator.html">Interpolator</A>* ci)</B></TT>
<DD>Set the interpolator for computing color values
<DL><DT><DD></DL><P>
<A NAME="setPosition"></A>
<A NAME="DOC.2.13.50"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setPosition(const osg::Vec3 &amp;p)</B></TT>
<DD>Set the position vector.        
<DL><DT><DD></DL><P>
<A NAME="setVelocity"></A>
<A NAME="DOC.2.13.51"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setVelocity(const osg::Vec3 &amp;v)</B></TT>
<DD>Set the velocity vector.
For built-in operators to work correctly, remember that velocity components are expressed
in meters per second.
<DL><DT><DD></DL><P>
<A NAME="addVelocity"></A>
<A NAME="DOC.2.13.52"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void addVelocity(const osg::Vec3 &amp;v)</B></TT>
<DD>Add a vector to the velocity vector
<DL><DT><DD></DL><P>
<A NAME="transformPositionVelocity"></A>
<A NAME="DOC.2.13.53"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void transformPositionVelocity(const osg::Matrix &amp;xform)</B></TT>
<DD>Transform position and velocity vectors by a matrix
<DL><DT><DD></DL><P>
<A NAME="getMass"></A>
<A NAME="DOC.2.13.54"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   float getMass() const </B></TT>
<DD>Get the mass of the particle.
For built-in operators to work correctly, remember that the mass is expressed in kg.
<DL><DT><DD></DL><P>
<A NAME="getMassInv"></A>
<A NAME="DOC.2.13.55"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   float getMassInv() const </B></TT>
<DD>Get <CODE>1 / getMass()</CODE>
<DL><DT><DD></DL><P>
<A NAME="setMass"></A>
<A NAME="DOC.2.13.56"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void setMass(float m)</B></TT>
<DD>Set the mass of the particle.
For built-in operators to work correctly, remember that the mass is expressed in kg.
<DL><DT><DD></DL><P>
<A NAME="beginRender"></A>
<A NAME="DOC.2.13.57"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void beginRender()</B></TT>
<DD>Perform some pre-rendering tasks. Called automatically by particle systems.
<DL><DT><DD></DL><P>
<A NAME="endRender"></A>
<A NAME="DOC.2.13.58"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   void endRender()</B></TT>
<DD>Perform some post-rendering tasks. Called automatically by particle systems.
<DL><DT><DD></DL><P>
<A NAME="getCurrentSize"></A>
<A NAME="DOC.2.13.59"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline   float getCurrentSize() const </B></TT>
<DD>Get the current (interpolated) polygon size. Valid only after the first call to update().
<DL><DT><DD></DL><P></DL>

<HR><DL><DT><B>This class has no child classes.</B></DL>

<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
